home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / GAME / Xconq 7.0.1.sit / Xconq 7.0.1 / lib / mormon.g < prev    next >
Text File  |  1995-08-22  |  6KB  |  287 lines

  1. (game-module "mormon"
  2.   (title "mormon")
  3.   (blurb "The heroic age of the heroic Mormon pioneers")
  4.   (variants (world-seen true) (see-all))
  5.   )
  6.  
  7. (unit-type mormon (char "m") (image-name "man")
  8.   (help "prolific settlers"))
  9. (unit-type avenging-angel (name "avenging angel") (char "A") (image-name "trooper")
  10.   (help "Mormon police/army/vigilantes"))
  11. (unit-type prophet (char "P") (image-name "man")
  12.   (help "prolific leader"))
  13. (unit-type army (char "a") (image-name "cavalry")
  14.   (help ""))
  15. (unit-type indian (name "Indian") (char "u") (image-name "archer")
  16.   (help ""))
  17. (unit-type fort (char "/") (image-name "walltown")
  18.   (help "where the army hangs out"))
  19. (unit-type settlement (char "*") (image-name "walltown")
  20.   (help ""))
  21. (unit-type temple (char "@") (image-name "city18")
  22.   (help ""))
  23.  
  24. (material-type water (help "very scarce in Utah"))
  25.  
  26. (terrain-type lake (char ".") (color "sky blue"))
  27. (terrain-type river (char ",") (color "cyan"))
  28. (terrain-type valley (char "+") (color "green"))
  29. (terrain-type forest (char "%") (color "forest green"))
  30. (terrain-type desert (char "~") (color "yellow"))
  31. (terrain-type mountains (char "^") (color "sienna"))
  32. (terrain-type salt-flat (char "_") (color "white"))
  33. (terrain-type not-Utah (char ":") (color "black"))
  34.  
  35. (define places (fort settlement temple))
  36.  
  37. ;;; Static relationships.
  38.  
  39. (table vanishes-on
  40.   (u* (lake not-Utah) true)
  41.   )
  42.  
  43. (add (settlement temple) capacity 8)
  44.  
  45. (table unit-capacity-x
  46.   (fort army 6)
  47.   ((settlement temple) army 1)
  48.   )
  49.  
  50. (table unit-size-as-occupant
  51.   (u* u* 100) ; disables occupancy usually
  52.   ((mormon avenging-angel prophet) (fort settlement temple) 1)
  53.   )
  54.  
  55. (table unit-size-in-terrain
  56.   (u* t* 1)
  57.   ((settlement temple) t* 4)
  58.   )
  59.  
  60. (add t* capacity 4)
  61.  
  62. ;;; Unit-material capacities.
  63.  
  64. (table unit-storage-x
  65.   (u* water 2)
  66.   (army water 4)
  67.   (places water 100)
  68.   )
  69.  
  70. ;;; Actions.
  71.  
  72. ;;;; scale should be 15 km?
  73.  
  74. (add (mormon avenging-angel army indian prophet) acp-per-turn (2 4 4 4 6))
  75.  
  76. (add (settlement temple) acp-per-turn 1)
  77.  
  78. ;;; Movement.
  79.  
  80. (add places speed 0)
  81.  
  82. (table mp-to-enter-terrain
  83.   (u* (lake not-Utah) 99)
  84.   )
  85.  
  86. ;;; Construction.
  87.  
  88. (add (settlement fort) cp 5)
  89.  
  90. (table acp-to-create
  91.   (prophet mormon 6)
  92.   (mormon mormon 2)
  93.   (settlement mormon 1)
  94.   (temple avenging-angel 1)
  95.   (mormon settlement 2)
  96.   (army fort 4)
  97.   )
  98.  
  99. (table cp-on-creation
  100.   (mormon settlement 1)
  101.   (army fort 1)
  102.   )
  103.  
  104. (table acp-to-build
  105.   (mormon settlement 2)
  106.   (army fort 4)
  107.   )
  108.  
  109. (table cp-per-build
  110.   (mormon settlement 1)
  111.   (army fort 1)
  112.   )
  113.  
  114. (table supply-on-creation
  115.   ;; Minimal water supply is free.
  116.   (u* water 1)
  117.   )
  118.  
  119. (add u* hp-recovery 1.00)
  120. (add army hp-recovery 0.50)
  121.  
  122. ;;; Production (water).
  123.  
  124. (table base-production
  125.   (u* water 1)
  126.   )
  127.  
  128. (table productivity
  129.   (u* t* 0)
  130.   (u* (valley river) 100)  ; note that the lake is salt, so useless
  131.   (u* forest 200)
  132.   (army mountains 50)
  133.   ;; Indians can get water anywhere but in salt flats.
  134.   (indian t* 100)
  135.   (indian salt-flat 0)
  136.   (u* valley 100)
  137.   )
  138.  
  139. (table base-consumption
  140.   (u* water 1)
  141.   )
  142.  
  143. (table hp-per-starve
  144.   ;; Might be able to do without water, but not for long.
  145.   (u* water 0.50)
  146.   )
  147.  
  148. (table unit-initial-supply
  149.   (u* water 9999)
  150.   )
  151.  
  152. ;"dies of thirst" (mormon avenging-angel a) starve-message
  153.  
  154. ;;; Combat.
  155.  
  156. (add u* hp-max (4 4 2 4 2 16 16 16))
  157.  
  158. (table hit-chance
  159.   (u* u* 50)
  160.   (mormon army 5)
  161.   ((army indian) mormon 95)  ; armies and indians are deadly
  162.   ((army indian) prophet 50)  ; prophet is wily
  163.   (army avenging-angel 30)
  164.   (avenging-angel army 50)      ; avenging angels are best way to hit back
  165.   )
  166.  
  167. (table damage
  168.   (u* u* 1)
  169.   (army u* 1d2+1)
  170.   (indian u* 1d4+1) ; indians can be very destructive sometimes
  171.   )
  172.  
  173. (table capture-chance
  174.   (army (settlement temple) (10 5))
  175.   )
  176.  
  177. ;5000 army siege
  178.  
  179. (add u* initial-seen-radius 4)
  180.  
  181. ;;; Scoring.
  182.  
  183. (scorekeeper (do last-side-wins))
  184.  
  185. (world 50)  ; hexagon would be better
  186.  
  187. (area 50 42)
  188.  
  189. (area (terrain
  190.   "50h"
  191.   "6ecfcfc2af33h3e"
  192.   "2f5ecfcf2a2f32h2ef"
  193.   "8ecfcfafd33h2e"
  194.   "4e2a3ecfc2fdf32hef"
  195.   "e2g2e2a2ecf2c2fd33he"
  196.   "fe2ge3aeacf2cfdf32he"
  197.   "2e3ge4aecf2cfd33h"
  198.   "fe4ge3aecf3cdf32h"
  199.   "he3gfge3aecf4c10dc3e18h"
  200.   "he3gfge2ae2acf3c2d7f2dc2e18h"
  201.   "2he5g2e3aecf2cd10fce2b17h"
  202.   "2h2e4g3ea2ecf3c3d6fc2ebe17h"
  203.   "3he3g3ef2efcf2cf3dc5ece2b2e16h"
  204.   "3h2e3g3efefecfc2d3c7eb3e16h"
  205.   "4h2e2g3ef2efacfcfdf9eb3e15h"
  206.   "4h4eg3efefeacfcfd2f7eb3e15h"
  207.   "5h7ef3eacfc2fd4f4ebe3f14h"
  208.   "5h4ef7ecfc2efce4f2ebefdf14h"
  209.   "6h4ef4efecfefefece4febefd2f13h"
  210.   "6h2ef2ef4efcef2efe2c3efebef2df13h"
  211.   "7h2efef6efefef5ec2ebefd3f12h"
  212.   "7h2ef2ef2e2cef2efef8ebe2f2e12h"
  213.   "8h2efef2e3c2ef2e2f5ecebe2f2eb11h"
  214.   "8h2ef4e3cecfce2f7ebe2f2eb11h"
  215.   "9h5ea6ece2f7ecbefe2be10h"
  216.   "9h3efea5efc3ef7eb3eb2e10h"
  217.   "10h2efea4ecfecfef8eb2eb3e9h"
  218.   "10hefef2ef5ec11eb2ebefe9h"
  219.   "11hefefef4e2f6ef5ebeb2efe8h"
  220.   "11hef2ef4ec2ef5e2f5e2b2efe8h"
  221.   "12hefe2f4ef2e2f4ef5eb6e7h"
  222.   "12h2e2f6efef2ef2e2f4eb6e7h"
  223.   "13h2f5ec2f5ef2ef3e2b3e2f2e6h"
  224.   "13h5ec2e2f5ef2ef2e2b4e3fe6h"
  225.   "14h6ec2f11eb6e2f2e5h"
  226.   "14h3ef3ef11e2b10e5h"
  227.   "15h2efe2cf11ebe5b6e4h"
  228.   "15h2efec11e3b6e6b4h"
  229.   "16h3ec11eb15e3h"
  230.   "16h10ec4eb2e2f11e3h"
  231.   "50h"
  232. ))
  233.  
  234. (side 1 (name "US"))
  235.  
  236. (side 2 (noun "Mormon"))
  237.  
  238. (side 3 (noun "Ute") (adjective "Ute"))
  239.  
  240. (fort 14 31 1 (n "Ft Douglas"))
  241. (army 14 31 1 (in "Ft Douglas"))
  242. (army 15 31 1)
  243. (army 16 31 1)
  244. (army 16 32 1)
  245. (army 17 32 1)
  246. (army 18 32 1)
  247.  
  248. (temple 14 30 2 (n "Salt Lake City"))
  249. (prophet 14 30 2 (n "Brigham Young") (in "Salt Lake City"))
  250. (avenging-angel 14 30 2 (in "Salt Lake City"))
  251. (mormon 14 30 2 (in "Salt Lake City"))
  252.  
  253. (settlement 15 27 2 (n "Orem"))
  254. (settlement 17 25 2 (n "Provo"))
  255. (settlement 14 29 2 (n "Sandy"))
  256. (settlement 12 32 2 (n "Ogden"))
  257.  
  258. (indian  9 39 3)
  259. (indian  9 37 3)
  260. (indian 14 37 3)
  261. (indian 14 34 3)
  262. (indian 22 28 3)
  263. (indian 18 26 3)
  264. (indian 17 23 3)
  265. (indian 16 18 3)
  266. (indian 21 16 3)
  267.  
  268. (game-module (instructions (
  269.   "The Mormons should try to reproduce themselves "
  270.   "and spread out as much as possible "
  271.   "before the cavalry catches up with them."
  272.   "Use the Avenging Angels to ambush the cavs."
  273.   ""
  274.   "The US cavalry just has to kill as many Mormons "
  275.   "as fast as they can."
  276.   )))
  277.  
  278. (game-module (notes (
  279.   "Can the US army kill all the Mormons before they overpopulate Utah?"
  280.   ""
  281.   "(This is all a joke of course.)"
  282.   )))
  283.  
  284. (game-module (design-notes (
  285.   "Needs some cleanup and balancing work"
  286.   )))
  287.